package com.tces.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.tces.demo.domain.UploadVideo;

public interface UploadVideoMapper {
	
	/**
	 * 插入视频
	 * @param video
	 * @return
	 */
	int insert(UploadVideo video);
	
	/**
	 * 获取视频列表
	 * @return
	 */
	List<UploadVideo> selectList();
	
	/**
	 * 根据id获取视频
	 * @param id
	 * @return
	 */
	UploadVideo selectOneById(int id);
	
	/**
	 * 更新视频当前播放时间
	 * @param currentTime
	 * @param id
	 * @return
	 */
	int updateCurrentTimeById(@Param("currentTime")int currentTime,@Param("id")int id);
}
